package com.xbongbong.pro.customercommunicate.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 添加客户动态（项目日志）入参
 * @author zheng.li
 */

@Getter
@Setter
@ToString
public class CustomerDynamicAddDTO extends BaseDTO {

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 合同id
     */
    private List<Long> contractIds;

    /**
     * 机会id
     */
    private List<Long> opportunityIds;

    /**
     * 联系人id
     */
    private List<Long> contactIds;
    
    /**
     * 客户id
     */
    private String customerName;
    /**
     * 关联业务数据id
     */
    private Long dataId;
    /**
     * 关联业务类型
     */
    private Integer communicateBusinessType;
    /**
     * 关联业务数据名称
     */
    private String communicateBusinessText;
    /**
     * data数据
     */
    private JSONObject data;
    /**
     * 备注
     */
    private String memo;
    /**
     * 项目日志类型
     */
    private Integer logType;

    public static CustomerDynamicAddDTO initCustomerDynamicAddDTO(String corpid, String userId, String loginUserName, String memo,
                                                                  Long customerId, String customerName, Long dataId,
                                                                  Integer communicateBusinessType, String communicateBusinessText, Integer logType) {
        CustomerDynamicAddDTO customerDynamicAddDTO = new CustomerDynamicAddDTO();
        customerDynamicAddDTO.setCorpid(corpid);
        customerDynamicAddDTO.setUserId(userId);
        customerDynamicAddDTO.setMemo(memo);
        customerDynamicAddDTO.setLoginUserName(loginUserName);
        customerDynamicAddDTO.setCustomerId(customerId);
        customerDynamicAddDTO.setCustomerName(customerName);
        customerDynamicAddDTO.setDataId(dataId);
        customerDynamicAddDTO.setCommunicateBusinessType(communicateBusinessType);
        customerDynamicAddDTO.setCommunicateBusinessText(communicateBusinessText);
        customerDynamicAddDTO.setLogType(logType);
        return customerDynamicAddDTO;
    }

}
